//============================================================================
// Name        : DocumentInfo.cpp
// Author      : lucmir@dcc.ufmg.br
// Description :
//============================================================================

#include "DocumentInfo.h"

DocumentInfo::DocumentInfo(std::string url, double weight, double len) {
	this->url = url;
	this->weight = weight;
	this->len = len;
}

DocumentInfo::~DocumentInfo() {
}

double DocumentInfo::getLen() const {
	return this->len;
}

std::string DocumentInfo::getUrl() const {
	return this->url;
}

double DocumentInfo::getWeight() const {
	return this->weight;
}

void DocumentInfo::setLen(unsigned int len) {
	this->len = len;
}

void DocumentInfo::setUrl(std::string url) {
	this->url = url;
}

void DocumentInfo::setWeight(double weight) {
	this->weight = weight;
}

void DocumentInfo::incLen(unsigned int value) {
	this->len += value;
}

void DocumentInfo::incWeight(double value) {
	this->weight += value;
}
